package cn.mldn.microboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

@SpringBootApplication
@ServletComponentScan
public class App {
	public static void main(String[] args) throws Exception {
		SpringApplication.run(App.class, args);
		String[] array = { "a", "b", "c" };
		DataBaseSql.createTable("test33", array);
		String[] date1 = { "1", "2", "3" };
		String[] date2 = { "4", "5", "6" };
		String[] date3 = { "7", "8", "9" };
		DataBaseSql.insert("test33", array, date1);
		DataBaseSql.insert("test33", array, date2);
		DataBaseSql.insert("test33", array, date3);
		String[] q_fileds = { "a", "b" };
		String[] q_data = { "1", "2" };
		String[] tab_fields = { "id", "c" };
		DataBaseSql.query("test33", q_fileds, q_data, 1, 5, tab_fields);
	}
}